package com.seal.yoyoshop.dao;

import com.seal.yoyoshop.bin.User;

import java.util.List;

public interface UserDao {
    int insertUser(User user);

    User selectUserByUsername(String username);

    User selectUserByUsernameAndPassword(String username, String password);

    int updatePassword(String username, String password);

    boolean updateUser(User user);

    List<User> selectUser(int page, int size);

    long selectUserCount();

    User selectUserById(int id);
}
